using UnityEngine;
using UnityEngine.UI;
using TMPro;

namespace ProjectMG
{
    public class UITempleteFormView: MonoBehaviour
    {
		[SerializeField]
		private Text m_UIName_Text;
		[SerializeField]
		private Toggle m_TestTog_Toggle;
		[SerializeField]
		private Image m_Background_Image;
		[SerializeField]
		private Image m_Foreground_Image;
		[SerializeField]
		private Text m_TogName_Text;
		[SerializeField]
		private Image m_TestBtn_Image;
		[SerializeField]
		private Button m_TestBtn_Button;
		[SerializeField]
		private TextMeshProUGUI m_BtnName_TextMeshProUGUI;

		public Text UIName_Text
		{
			get
			{
				if(!m_UIName_Text)
				{
					m_UIName_Text = gameObject.transform.Find("Offset/UITitle/_UIName").GetComponent<Text>();
				}
				return m_UIName_Text;
			}
		}
		public Toggle TestTog_Toggle
		{
			get
			{
				if(!m_TestTog_Toggle)
				{
					m_TestTog_Toggle = gameObject.transform.Find("Offset/_TestTog").GetComponent<Toggle>();
				}
				return m_TestTog_Toggle;
			}
		}
		public Image Background_Image
		{
			get
			{
				if(!m_Background_Image)
				{
					m_Background_Image = gameObject.transform.Find("Offset/_TestTog/_Background").GetComponent<Image>();
				}
				return m_Background_Image;
			}
		}
		public Image Foreground_Image
		{
			get
			{
				if(!m_Foreground_Image)
				{
					m_Foreground_Image = gameObject.transform.Find("Offset/_TestTog/_Background/_Foreground").GetComponent<Image>();
				}
				return m_Foreground_Image;
			}
		}
		public Text TogName_Text
		{
			get
			{
				if(!m_TogName_Text)
				{
					m_TogName_Text = gameObject.transform.Find("Offset/_TestTog/_TogName").GetComponent<Text>();
				}
				return m_TogName_Text;
			}
		}
		public Image TestBtn_Image
		{
			get
			{
				if(!m_TestBtn_Image)
				{
					m_TestBtn_Image = gameObject.transform.Find("Offset/_TestBtn").GetComponent<Image>();
				}
				return m_TestBtn_Image;
			}
		}
		public Button TestBtn_Button
		{
			get
			{
				if(!m_TestBtn_Button)
				{
					m_TestBtn_Button = gameObject.transform.Find("Offset/_TestBtn").GetComponent<Button>();
				}
				return m_TestBtn_Button;
			}
		}
		public TextMeshProUGUI BtnName_TextMeshProUGUI
		{
			get
			{
				if(!m_BtnName_TextMeshProUGUI)
				{
					m_BtnName_TextMeshProUGUI = gameObject.transform.Find("Offset/_TestBtn/_BtnName").GetComponent<TextMeshProUGUI>();
				}
				return m_BtnName_TextMeshProUGUI;
			}
		}

    }
}